package cn.xiaoliu.hrm.feign;

import cn.xiaoliu.hrm.domain.LoginUser;
import cn.xiaoliu.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "AUTH-SERVER",fallbackFactory = RegisterFallbackFactory.class)
@RequestMapping("/loginUser")
public interface RegisterFeignClient {
    @PostMapping("/register")
    AjaxResult register(@RequestBody LoginUser loginUser);
}
